#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main()
{
    freopen("road.in", "r", stdin);
    freopen("road.out", "w", stdout);
    cin >> n >> m >> k;
    for (int i = 1; i <= m; i++)
    {
        
    }
    cout << 0;
    return 0;
}